home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / apps / 298 / freebase / freebase.doc < prev    next >
Text File  |  1988-02-06  |  13KB  |  267 lines

  1.      Hello, and welcome to FreeBase, a database management program that 
  2. is FREE!  I hope you enjoy using this program as much as I have enjoyed 
  3. writing it.
  4.  
  5.      Here are some of the features of FreeBase:
  6.  
  7.      **   mouse used for program control and data selection
  8.  
  9.      **   manipulations done in memory for greater speed
  10.  
  11.      **   ability to send reports to screen, disk, or printer
  12.  
  13.      **   text merge for printing form letters, labels, etc.
  14.  
  15.      **   import\export of data in a standard format
  16.  
  17.      **   fast sorting on selectable fields
  18.  
  19.      **   selection of records by use of criteria
  20.  
  21.      **   a variety of data types
  22.  
  23.      **   data encryption
  24.  
  25. User Interface:
  26.      In this program,  I have abandoned GEM in favor of a rather simple 
  27. system  of menus.   When you are presented with a menu,  you  have  the 
  28. option of either selecting the menu option with the mouse,  or pressing 
  29. the  number key corresponding to the number printed to the left of  the 
  30. menu  option.   In  addition,  the <Undo> key is  used  throughout  the 
  31. program  to stop doing what you are doing and go back to  the  previous 
  32. menu.   Clicking with the mouse on the top line of a menu also has this 
  33. effect.  The only part of the user interface that is somewhat different 
  34. from  this is the Scan/mark records mode.   In this  mode,  moving  the 
  35. mouse  to the left or right determines which fields will be  displayed.  
  36. Moving the mouse up or down determines which records will be displayed.  
  37. Clicking  with  the left mouse button on a record causes it  to  become 
  38. MARKED,  and  clicking  with  the  right button  causes  it  to  become 
  39. unMARKED.  Pressing <Undo> exits the Scan/mark mode.
  40.  
  41. Getting Started:
  42.      The  first thing you will need to do is to create a  new  database 
  43. file.   This is done from the initial menu of FreeBase.   First you are 
  44. asked for a file name for the database file.   Enter any combination of 
  45. up to 8 letters and numbers followed optionally by a period and up to 3 
  46. letters  or numbers.   Next you will be taken directly to the "Add  new 
  47. fields" utility.  Here you will be asked for the field name, data type, 
  48. and  possibly other field information.   For example,  if you wanted  a 
  49. file  which contained the last name and age of all  your  friends,  you 
  50. might enter for the first field:
  51.      field name:  Last_Name
  52.      data type:   text
  53.      field width: 15
  54.      field name:  Age
  55.      data type:   integer
  56.      range:       0 to 255
  57. Don't  worry  about getting all the fields defined in one  fall  swoop.  
  58. You  may  add  or delete fields at any time without  losing  any  other 
  59. information in the file.      The next thing you will need to do is add 
  60. some  new records.   This is done by selecting the Add  records  option 
  61. from the main menu.   You will be placed in the edit mode with a  blank 
  62. record  as the current record.   The edit mode consists of a  line  for 
  63. each  field containing the field name and value of this field  for  the 
  64. current record,  as well as a blank line for data entry.  Use the up or 
  65. down  arrow  to place the cursor on the data entry line  of  the  field 
  66. whose  value you want to change.   Then enter the new data  and  either 
  67. press the up arrow,  down arrow,  <Return>, or <Undo>.  Moving past the 
  68. top  field causes the previous record to be edited.   Moving  past  the 
  69. last field causes a new blank record to be edited.  All new records are 
  70. placed  at  the end of the file.   Press <Undo>  when  you've  finished 
  71. adding the last record.
  72.  
  73. Selecting "MARKING" Certain Records:
  74.      Once you've entered a large number of records for a given database 
  75. file, it is often useful to work with only a few specific records.  For 
  76. this purpose,  each database file you create with FreeBase will contain 
  77. the field named MARKED.   This is a Boolean field which may contain the 
  78. value "Y" or "N" depending upon whether you have selected that  record.  
  79. You  may  use this field just as you would any other  field  (i.e.  for 
  80. sorting,  selection  criteria,  reporting),  but  it is also  used  for 
  81. determine  which  records you want to edit.   It can also  be  used  to 
  82. specify which records you want to use in a report.   There are two ways 
  83. to  go about MARKING records:  the Scan/mark records mode and the  Mark 
  84. records via selection criteria utility.
  85.      1)   Scan/mark  records mode.   This mode is entered by  selecting 
  86. the Scan/mark records option from the main menu.  You will be presented 
  87. with a screen which contains 4 fields and up to 24 records.  Moving the 
  88. mouse to the left or right changes which fields are displayed.   Moving 
  89. the mouse up or down scrolls up or down through the records.   Clicking 
  90. with  the  left mouse button on a record causes that record  to  become 
  91. MARKED.   The right mouse button is used to unMARK records.   <Undo> is 
  92. used to exit the mode.
  93.      2)   Mark  records  via  selection  criteria.    This  utility  is 
  94. selected through the utilities menu.  A selection criteria is a list of 
  95. conditions connected by the logical operators "and" or "or".  The whole 
  96. is  evaluated to determine which records in the file should be  MARKED.  
  97. The  evaluation is done strictly in the order you enter  the  criterium 
  98. and  connectives,  so a little careful forethought  is  required.   For 
  99. example,  if  you wanted to MARK all the records which  have  Last_Name 
  100. equal  to  "Smith" and age greater than "20",  or  Last_Name  equal  to 
  101. "Jones", you would need to enter: Last_Name equal to Jones or Last_Name 
  102. equal to Smith and age greater than 20.   For another example, in terms 
  103. of logical variables,  the criteria P and Q and R or S and T or U would 
  104. be  evaluated as (P and (Q and (R or (S and (T or U))))).   Here are  a 
  105. few identities which you might find helpful:
  106.      (P and Q) or R         <=> R or (P and Q)
  107.      (P or Q) and R         <=> R and (P or Q)
  108.      (P and Q) or (P and R) <=> P and (Q or R)
  109.      (P or Q) and (P or R)  <=> P or (Q and R)
  110. where P,Q, and R are propositions.
  111.  
  112. Sorting:
  113.      The order information is listed in can make a world of  difference 
  114. in a database file.  For example, could you imagine trying to find your 
  115. friends  phone  number  in a phone book that was  not  in  alphabetical 
  116. order?   It  is a simple matter to sort by a single field in  FreeBase, 
  117. but sometimes it is useful to sort by several fields.  For example, you 
  118. might want to sort a file by last name, and then within last name, sort 
  119. by first name.   This also is possible in FreeBase.  To do this kind of 
  120. sort,  you  simply  sort  the  fields in the  reverse  order  of  their 
  121. priority.  In other words, in the previous example you would first sort 
  122. the file by first name, then you would sort it by last name.
  123.  
  124. Saving:
  125.      The  entire file is stored in RAM while you are  manipulating  it.  
  126. It  is therefore necessary to save the file to disk when you  are  done 
  127. with it.   On the other hand, there may be times when you don't want to 
  128. save the changes you've made.   For instance,  you may wish to delete a 
  129. large  number of records in order to work more quickly with just a  few 
  130. records.   In  this case,  save the file would result in the  permanent 
  131. loss of the deleted records.
  132.  
  133. Renaming a File:
  134.      The  Rename  file option is useful for creating a new  file  which 
  135. contains much of the same information as on an existing  file.   Simply 
  136. give the file in memory a new name,  and then any further changes  will 
  137. leave the original file unchanged.
  138.  
  139. Printing a Report:
  140.      There  are 3 types of reports that FreeBase  can  generate.   They 
  141. are:   text  merge,   regular  columnar  format,   and  database   file 
  142. information.  Each of these can be sent to the screen, printer, or disk 
  143. file.   I recommend sending the report to the screen first so that  you 
  144. can  be sure you've selected the correct  fields.   In  addition,  text 
  145. merge  and  the  regular format have the option  of  reporting  on  all 
  146. records or just MARKED records.   Also,  you may abort the printing  of 
  147. these two types of reports by pressing any key during the printing.
  148.      1)  Text merge.   This type of reporting is useful for  generating 
  149. form letters,  labels,  or any sort of report that requires more than 1 
  150. printed line per record.   To use this text merge, you must first use a 
  151. word processing program to produce a source (base) document.   Any word 
  152. processing  program that allows you to save your document in ASCII  may 
  153. be used (which includes every word processor I know of).   In  creating 
  154. the source file, simply type out what constant text you want to appear, 
  155. then insert /?  everywhere you want a value from a database file to  be 
  156. inserted.  For example, a form letter might look like this:
  157.  
  158.  
  159.  
  160.  
  161. January 1, 1988
  162.  
  163.  
  164.  
  165. /?
  166. /?
  167. /?, /?  /?
  168.  
  169.  
  170. Dear /? /?:
  171.  
  172. This  letter is to inform you about the text merge capabilities of  the 
  173. FreeBase database management program.   Eric Lindros has really outdone 
  174. himself with this one!   Now,  at absolutely no cost to us,  we have  a 
  175. program that will allow us to easily do are regular mailings in no time 
  176. flat.
  177.  
  178. Etc. etc. etc...
  179.  
  180. Sincerely yours
  181.  
  182.  
  183.  
  184. Fred Farkle
  185. Emperor of the Universe
  186.  
  187.  
  188.  
  189. Then,  when  you  select the text merge option from the  reports  menu, 
  190. select  the source document that you created with the  word  processing 
  191. program.   The  entire  document will be loaded into  memory  and  each 
  192. occurrence of /? will be located.  For each of these, you will be asked 
  193. which field should be used to replace the /?.  This will be done in the 
  194. order  that they appear,  so be sure to print out the  source  document 
  195. ahead of time so you will know which field you should choose.
  196.  
  197. Import/Export Records:
  198.      It is often useful to bring values into a database file that  have 
  199. been  created  using some other program or vice  versa.   This  may  be 
  200. accomplished using the Import records or Export records utilities.  The 
  201. data format that is used by FreeBase is as follows:
  202.  
  203. "itm1","itm2",...,"itmN"      <- these values are for  record #1
  204. "itm1","itm2",...,"itmN"      <-   "     "     "   "      "   #2
  205.           .
  206.           .
  207.           .
  208. "itm1","itm2",...,"itmN"      <- these values are for the last record
  209.  
  210. where  itm1 through itmN are the import/export values.   Most  programs 
  211. that  allow  importing or exporting of data provide  formats  that  are 
  212. compatible with this format.
  213.      The  Import/Export  utilities  may  be  used  within  FreeBase  to 
  214. redefine an existing field.  For example, say that you defined Zip_Code 
  215. to  be an integer field and then latter discovered that you  needed  to 
  216. enter the zip code of 09313.   As an integer, 09313 prints out as 9313.  
  217. To correct this situation,  the Zip_Code field needs to be converted to 
  218. a text field.  Here is the procedure.
  219.      1)   Use  the  Export records utility and select Zip_Code  as  the 
  220. only export field.  Be sure to make a note of the file name under which 
  221. the data is stored.
  222.      2)   Use the Delete field utility to delete Zip_Code.
  223.      3)   Use  the  Add  fields  utility to add  a  text  field  called 
  224. Zip_Code.
  225.      4)   Use  the Import field utility to import the zip  code  values 
  226. that  were exported in step 1.   Be sure to use the Overwrite  existing 
  227. records option rather than the Create new records option.
  228.  
  229. Encrypt/Decrypt Records:
  230.      If you wish to use FreeBase to keep confidential information,  you 
  231. may  further these ends by using the Encrypt/Decrypt  records  utility.  
  232. Simply enter a string of characters as the key,  and your data will  be 
  233. put into an unintelligible form.   To Decrypt the records, simply enter 
  234. the same key.  Any keyboard characters may be used in the key.  Be very 
  235. careful to Decrypt with EXACTLY the same key that you used to  Encrypt.  
  236. If you make a mistake in the key while Decrypting, you may correct this 
  237. by entering the mistake again as the key and then entering the  correct 
  238. key.
  239.  
  240.  
  241.      Again,  I hope you enjoy using this program.   I have tried to  be 
  242. very  thorough in debugging it,  but I am sure that a small bug or  two 
  243. may  appear  in the future.   If this should happen,  I  would  greatly 
  244. appreciate you notifying me.   Also,  I would like to add a note  about 
  245. the name of this program.   For those of you how find it  offensive,  I 
  246. suggest  that  perhaps  you attach a little too much  emotion  to  mere 
  247. words.   As  for  myself,  I can't seem to make much  of  a  connection 
  248. between  the word freebase and the use of ether and  cocaine.   To  me, 
  249. FreeBase  base  means  a database program that is  FREE!   Free  is  my 
  250. favorite word,  so I feel free to use "free" freely.  While I am on the 
  251. subject  of  free,  I would like to mention that  I  charge  absolutely 
  252. nothing for the use,  copying,  and distribution of FreeBase.  However, 
  253. If  you  use this program,  I would ask that you do me a  small  favor.  
  254. Please  send  me a note telling me what you think  about  the  program.  
  255. This will be the only form of remuneration I receive for the 150+ hours 
  256. I spent developing FreeBase.  All it take is a small card, 22 cents and 
  257. about five minutes.  Send correspondence to:
  258.  
  259. Eric B. Lindros
  260. 1717 Lillingston Canyon Rd.
  261. Carpinteria, CA  93013
  262. phone: (805)684-6887
  263.  
  264. Thank you!
  265.  
  266.  
  267.